package com.dms.modules.user.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_favorite")
@ApiModel("用户收藏")
public class UserFavorite {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("收藏ID")
    private Long id;
    
    @ApiModelProperty("用户ID")
    private Long userId;
    
    @ApiModelProperty("收藏类型：1-商品，2-店铺")
    private Integer type;
    
    @ApiModelProperty("目标ID（商品ID或店铺ID）")
    private Long targetId;
    
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
    
    @ApiModelProperty("是否删除")
    @TableLogic
    private Integer deleted;
} 